package com.kingmed.kmss.framework.feign.client.bpmn;


import com.kingmed.kmss.common.bo.bpmn.GroupBO;
import com.kingmed.kmss.common.bo.bpmn.UserBO;
import com.kingmed.kmss.common.bo.bpmn.UserGroupBO;
import com.kingmed.kmss.common.exception.InternalApiException;
import com.kingmed.kmss.common.vo.CommonResponse;
import org.springframework.stereotype.Component;


@Component
public class RemoteBpmnGroupFallbackService implements RemoteBpmnGroupService {

    @Override
    public CommonResponse<?> createGroup(GroupBO groupBO) {
        throw new InternalApiException("->kmss-bpmn推送审批模块失败: 创建用户组");
    }

    @Override
    public CommonResponse<?> deleteGroup(GroupBO groupBO) {
        throw new InternalApiException("kmss-bpmn推送审批模块失败: 删除用户组");
    }

    @Override
    public CommonResponse<?> assignUserToGroups(UserBO userBo) {
        throw new InternalApiException("kmss-bpmn推送审批模块失败: 分配用户到用户组");
    }

    @Override
    public CommonResponse<?> unassignUserFromGroups(UserGroupBO userGroupBo) {
        throw new InternalApiException("kmss-bpmn推送审批模块失败: 从用户组中删除用户");
    }
}
